/* Setup global settings */
(function () {
    'use strict';
    angular.module('app.core')
        .factory('settings', ['$rootScope', function ($rootScope) {
            // supported languages
            var settings = {
                layout: {
                    pageLogin: false,
                    pageFullWidth: false,
                    pageSidebarFixed: true,
                    pageSidebarClosed: false, // sidebar menu state
                    pageContentWhite: false, // set page content layout
                    pageBodySolid: false, // solid body color state
                    pageAutoScrollOnLoad: 1000 // auto scroll to top on page load
                },
                userRole:'',
                assetsPath: 'assets',
                globalPath: 'assets/global',
                layoutPath: 'assets/layouts/default',
                cert: '-----BEGIN CERTIFICATE-----' +
                'MIICQTCCAaoCCQDKc2l1JOJFwTANBgkqhkiG9w0BAQUFADBlMQswCQYDVQQGEwJD' +
                'TjEQMA4GA1UECAwHQmVpSmluZzEQMA4GA1UEBwwHQmVpSmluZzEWMBQGA1UECgwN' +
                'U0JSLUlORk8gSU5DLjEMMAoGA1UECwwDR1BEMQwwCgYDVQQDDANHUEQwHhcNMTcw' +
                'NzI4MDYxMTQ2WhcNMTcwODI3MDYxMTQ2WjBlMQswCQYDVQQGEwJDTjEQMA4GA1UE' +
                'CAwHQmVpSmluZzEQMA4GA1UEBwwHQmVpSmluZzEWMBQGA1UECgwNU0JSLUlORk8g' +
                'SU5DLjEMMAoGA1UECwwDR1BEMQwwCgYDVQQDDANHUEQwgZ8wDQYJKoZIhvcNAQEB' +
                'BQADgY0AMIGJAoGBAL44RCuay4baxSeu/GMgeAC2MrrMUxQMp8y37ow24CeFA+ib' +
                'YlhYdIVIg15LPlPH/iQ+cU57ZGIEhFmeSy8hajoQ35jcbFkzyk11kVWdWa2kg5FU' +
                'qf/TN8TBaRfKXiijGoPlrRUdiLLowdOK/cXSl0x4DJlHQhlhKoRmHlWleCgzAgMB' +
                'AAEwDQYJKoZIhvcNAQEFBQADgYEAcPeXVC1/UjZU4Ryq+NtevgXH3E9p9tdGnTWa' +
                '7jLn2A/VXaHhYpTQ72pyfZdIkEinOAXVpNcYNx4D1I1LBt+4zspXb89GzfNNOBw7' +
                'btvrqfqfUGylU7pYUCnrRXzhDrGg6uguglaupyXStGGsKbSJyUZxGGZYkKd6dNIJ' +
                'pXhWWHs=' +
                '-----END CERTIFICATE-----'
            };

            $rootScope.settings = settings;

            return settings;
        }]);
})();